package com.ruoyi.exam.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;


/**
 * 用户题库进度对象 exam_user_bank_progress
 *
 * @author Tellsea
 * @date 2025-06-23
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("exam_user_bank_progress")
public class ExamUserBankProgress extends BaseEntity {

    /**
     * 进度ID
     */
    @TableId
    private Long progressId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 题库ID
     */
    @Excel(name = "题库ID")
    private Long bankId;

    /**
     * 当前题目ID
     */
    @Excel(name = "当前题目ID")
    private Long currentQuestionId;

    /**
     * 当前题目序号
     */
    @Excel(name = "当前题目序号")
    private Long currentSortOrder;

    /**
     * 题库总题数
     */
    @Excel(name = "题库总题数")
    private Long totalQuestions;

    /**
     * 已完成题数
     */
    @Excel(name = "已完成题数")
    private Long completedQuestions;

    /**
     * 答对题数
     */
    @Excel(name = "答对题数")
    private Long correctQuestions;

    /**
     * 完成百分比
     */
    @Excel(name = "完成百分比")
    private BigDecimal progressPercent;

    /**
     * 正确率
     */
    @Excel(name = "正确率")
    private BigDecimal accuracyRate;

    /**
     * 最后练习时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后练习时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastPracticeTime;

    /**
     * 总练习时长(秒)
     */
    @Excel(name = "总练习时长(秒)")
    private Long totalPracticeTime;

    /**
     * 是否完成(0未完成 1已完成)
     */
    @Excel(name = "是否完成(0未完成 1已完成)")
    private String isCompleted;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
